<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86185
  Date: 2021/4/27
  Time: 10:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
${list}
<center>
    <a href="/deptAdd.jsp">添加</a>
    <form action="/dept/select1">
        员工编号<input type="number" name="did"><br>
        员工姓名<input type="text" name="dname"><br>
        员工工资<input type="number" name="salary"><br>
<input type="submit" value="提交">
    </form>
    <table border="1">
        <tr>
            <td>员工编号</td>
            <td>员工姓名</td>
            <td>员工工资</td>
        </tr>
        <c:forEach items="${list}" var="emp">
            <tr>
                <td>${emp.did}</td>
                <td>${emp.dname}</td>
                <td>${emp.salary}</td>
            </tr>
        </c:forEach>

    </table>
</center>
</body>
</html>
